PUT lawyer_letters_v1
{
    "settings": {
        "number_of_replicas": 0,
        "number_of_shards": 1,
        "analysis": {
            "analyzer": {
                "sentence_paragrah_analyzer": {
                    "type": "custom",
                    "char_filter": [
                        "sentence_paragrah_mapping"
                    ],
                    "tokenizer": "ik_max_word"
                }
            },
            "char_filter": {
                "sentence_paragrah_mapping": {
                    "type": "mapping",
                    "mappings": [
                        """\n => \u0020sentence\u0020paragraph\u0020 """,
                        """! => \u0020sentence\u0020 """,
                        """? => \u0020sentence\u0020 """,
                        """。 => \u0020sentence\u0020 """,
                        """？ => \u0020sentence\u0020 """,
                        """！ => \u0020sentence\u0020 """
                    ]
                }
            }
        }
    },
    "mappings": {
        "properties": {
            "@timestamp": {
                "type": "date"
            },
            "@version": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                }
            },
			"mainContent": {
				"type": "text",
				"fields": {
					"keyword": {
						"type": "keyword"
					}
				},
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart"
			},
            "answer": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart",
				"copy_to": "mainContent"
            },
            "app_trade_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "apply": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "audited_date": {
                "type": "date"
            },
            "auditor_id": {
                "type": "long"
            },
            "auditor_name": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "base_tag_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "base_tag_name": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                },
				"copy_to": "mainContent"
            },
            "case_problem": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart",
				"copy_to": "mainContent"
            },
            "claims": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                    }
                },
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart",
				"copy_to": "mainContent"
            },
            "click": {
                "type": "long"
            },
            "common_file_id": {
                "type": "long"
            },
            "created": {
                "type": "date"
            },
            "deleted": {
                "type": "long"
            },
            "demand_problem": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart",
				"copy_to": "mainContent"
            },
            "downloads": {
                "type": "long"
            },
            "efa_course_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "id": {
                "type": "long"
            },
            "is_del": {
                "type": "boolean"
            },
            "keywords": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "law_advice_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "law_case_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "law_indictment_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
            "laws": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "modified": {
                "type": "date"
            },
            "requirements_describe": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"analyzer": "sentence_paragrah_analyzer",
				"search_analyzer": "ik_smart",
				"copy_to": "mainContent"
            },
            "requirements_tags": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "status": {
                "type": "long"
            },
            "user_id": {
                "type": "long"
            },
            "user_name": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
				"copy_to": "mainContent"
            },
            "writ_id": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                }
            },
			"clauselaw_memo": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
                "copy_to": "mainContent"
            },
            "clauselaw_title": {
                "type": "text",
                "fields": {
                    "keyword": {
                        "type": "keyword"
                    }
                },
                "copy_to": "mainContent"
            }
        }
    }
}